package QL;

import java.util.Map;

public class ButlerPrizePoolWaterLineLogQueryRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 查询第几页？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少条纪录？
    /// </summary>
    public long PageCount;

    /// <summary>
    /// 是否按日期筛选？
    /// </summary>
    public boolean IsFilterDateTime;

    /// <summary>
    /// 筛选开始时间
    /// </summary>
    public String FilterBeginTime;

    /// <summary>
    /// 筛选结束时间
    /// </summary>
    public String FilterEndTime;

    /// <summary>
    /// 0查询全部日志 1仅查询自动抽水日志 2仅查询手动抽放水日志
    /// </summary>
    public long FilterState;

    @Override
    public String GetApiName()
    {
        return "butler.prize.pool.water.line.log.query";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
        map.put("is_filter_date_time", IsFilterDateTime ? "True" : "False");
        map.put("filter_begin_time", FilterBeginTime);
        map.put("filter_end_time", FilterEndTime);
        map.put("filter_state", String.valueOf(FilterState));
    }
}
